'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/login', controller.home.login);
  router.post('/api/reg', controller.home.reg);
  router.post('/api/name', controller.home.username);
  router.get('/api/list', controller.home.list);
  router.post('/api/del', controller.home.del);




};
